package com.kexun.service;

import com.kexun.User;
import com.kexun.utils.Msg;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public interface SSOService {

    //登录 获取加密公钥
    @RequestMapping("getPublicKey")
    public Msg getPublicKey(HttpServletResponse response);

    //登录
    @PostMapping("login")
    public Msg login(User user, HttpSession session, HttpServletResponse response, HttpServletRequest request);

    //退出登录
    @RequestMapping("loginOut")
    public Msg loginOut();


}
